$def with (form, err_msg)

<h1>My Mini Blog</h1>

<form action="" method="post">
    $:form.render()
    <small style="color:red">
        $if err_msg != 0:
          $err_msg
    </small>
</form>